Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make use of 'halt_on_error' to catch error and release lock #38

Merged
merged 2 commits into from Oct 2, 2017

Conversation

danielbachhuber
Copy link
Member

@danielbachhuber danielbachhuber commented Sep 29, 2017

Requires wp-cli/wp-cli#4383

Fixes #35

@schlessera schlessera changed the title Make use of 'throw_exception_on_error' to catch error and release lock Make use of 'halt_on_error' to catch error and release lock Sep 29, 2017
@schlessera
Copy link
Member

@danielbachhuber Do you think we can test this, if we drop the cURL timeout to 1ms ?

@danielbachhuber
Copy link
Member Author

@schlessera I was on the fence as to whether it would be useful to add a test (because it will always make an outbound HTTP request). Another thing we could test is a request to a domain that doesn't resolve. Your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants